set container=m4a|set container=mp3|set container=oga|set container=mka|set container=aac|set container=flac|set container=opus|set container=webm|set container=wav|set container=mp2|set container=ogg|set container=mkv|set container=mp4|--select container--
#newl "#ppthapps\ffmpeg\ffmpeg.exe" |-program file-
-i "#item" |-input-
#remark set bitrate if needed|-q:a 4 |-q:a 2 |-b:a 192k |-b:a 320k |-b:a 256k |-b:a 192k |-b:a 160k |-b:a 128k |-b:a 64k |-b:a 32k |-b:a 16k |-aq 5 |-aq 6 |--bitrate, use -aq for ogg container, or vorbis codec--
#remark set codec if needed|-c:a libmp3lame |-c:a aac -strict experimental |-c:a copy |-c:a opus |-c:a mp2 |-c:a pcm_s16le |-c:a pcm_s16le -ar 44100 -ac 2 |-c:a flac |-c:a vorbis |-- audio codec --
#remark -sampling frequency-|-ar 44100 |-ar 22050 |-ar 48000 |-sampling frequency-
#remark -channels-|-ac 2 |-ac 1 |-channels-
-vn |--no video--
-map_metadata 0 -id3v2_version 3 |transfer metedata to mp3 format
#remark -start_time-|-ss 00:02:40 |-Start time. HH:MM:SS[.xxx]. Last part .xxx is optional-
#remark -endtime-|-t 10 |-t 00:00:10 |-vframes 250 |-to 00:02:50 |-to 170 |-to 00:02:50.000 |- "-t" is duration, "-to" means play up to position. -|- vframes is video frames, like "-t" -
#remark -overwrite existing file-|-y |-overwrite existing file-
"#path#name.%container%" |-output-

<comment>
Convert audio to another container. Select format or container in the first combobox.
You can set bitrate manually. Use -aq 5 is for Ogg vorbis quality.
Use container m4a for aac
Use codec pcm_s16le for wav.


mp3:
https://trac.ffmpeg.org/wiki/Encode/MP3
0-3 will normally produce transparent results, 4 (default) should be close to perceptual transparency, 
and 6 produces an "acceptable" quality. 
The option -qscale:a is mapped to the -V option in the standalone lame command-line interface tool.


	ffmpeg
lame	avg	range
-V 0	245	220-260	-q:a 0 (NB this is VBR from 22 to 26 KB/s)
-V 1	225	190-250	-q:a 1
-V 2	190	170-210	-q:a 2
-V 3	175	150-195	-q:a 3
-V 4	165	140-185	-q:a 4
-V 5	130	120-150	-q:a 5
-V 6	115	100-130	-q:a 6
-V 7	100	80-120	-q:a 7
-V 8	85	70-105	-q:a 8
-V 9	65	45-85	-q:a 9

 Note: Using -b:a 320k is generally considered wasteful because:
    -q:a 0  -q:a 3 will normally produce transparent results.
    MP3 is lossy anyway, so if you really want the highest quality use a lossless format such as FLAC. 



Vorbis/theora:
https://trac.ffmpeg.org/wiki/TheoraVorbisEncodingGuide
-qscale:a  audio quality. Range is 010, where 10 is highest quality. 36 is a good range to try. Default is -qscale:a 3.

-qscale:v  video quality. Range is 010, where 10 is highest quality. 57 is a good range to try. If you omit -qscale:v (or the alias -q:v) then ffmpeg will use the default -b:v 200k which will most likely provide a poor quality output, and libtheora may drop/skip frames if the bitrate is too low.
